package com.itcast.bulls.stock.entity.system;

import com.itcast.bulls.stock.entity.base.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "t_trade_global_config")
public class TradeGlobalConfig extends BaseEntity {
    /**
     * 主键标识
     */
    private Long id;

    /**
     * 配置项编号
     */
    private String code;

    /**
     * 分类编号(BASIC:基础配置， BUSINESS： 业务配置,  SYSTEM：系统项配置)
     */
    private String category;

    /**
     * 配置项的值
     */
    private String value;

    /**
     * 状态(0:启用， 1：禁用）
     */
    private Byte status;

    /**
     *
     * @mbg.generated Tue May 30 22:20:33 CST 2023
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键标识
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_trade_global_config.id
     *
     * @param id the value for t_trade_global_config.id
     *
     * @mbg.generated Tue May 30 22:20:33 CST 2023
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 配置项编号
     */
    public String getCode() {
        return code;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_trade_global_config.code
     *
     * @param code the value for t_trade_global_config.code
     *
     * @mbg.generated Tue May 30 22:20:33 CST 2023
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /**
     * 分类编号(BASIC:基础配置， BUSINESS： 业务配置,  SYSTEM：系统项配置)
     */
    public String getCategory() {
        return category;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_trade_global_config.category
     *
     * @param category the value for t_trade_global_config.category
     *
     * @mbg.generated Tue May 30 22:20:33 CST 2023
     */
    public void setCategory(String category) {
        this.category = category == null ? null : category.trim();
    }

    /**
     * 配置项的值
     */
    public String getValue() {
        return value;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_trade_global_config.value
     *
     * @param value the value for t_trade_global_config.value
     *
     * @mbg.generated Tue May 30 22:20:33 CST 2023
     */
    public void setValue(String value) {
        this.value = value == null ? null : value.trim();
    }

    /**
     * 状态(0:启用， 1：禁用）
     */
    public Byte getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_trade_global_config.status
     *
     * @param status the value for t_trade_global_config.status
     *
     * @mbg.generated Tue May 30 22:20:33 CST 2023
     */
    public void setStatus(Byte status) {
        this.status = status;
    }
}

